package com.woniu.user.mapper;

import com.woniu.common.pojo.Order;
import com.woniu.common.pojo.Shops;
import com.woniu.common.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper {
//    List<Order> getOrder(Shops shops);
    List<Order> getOrder(Integer uid);
    List<Order> getOrder(User user);

    Integer updateOrder(Order order);

    Integer deleteOrder(Order order);

    Integer deleteOrders(@Param("selectedOrderIds") Integer[] selectedOrderIds);

    //    添加订单
    Integer addOrder(Order order);

    int updateRefundStatus(@Param("oid") String oid, @Param("comment") String comment);
}
